package cn.com.taiji.pos.service;

import cn.com.taiji.pos.entity.ItemS;
import cn.com.taiji.pos.entity.TradeConsumptionDetail;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.dreamyoung.mprelation.IService;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 消费细单 服务类
 * </p>
 *
 * @author
 * @since 2021-03-01
 */
public interface ITradeConsumptionDetailService extends IService<TradeConsumptionDetail> {

    List<TradeConsumptionDetail> findByMainId(String id);

    List<ItemS> getSalesOrder(LocalDate searchDate);

    IPage<ItemS> getSalesOrderPage(IPage<ItemS> page, LocalDate searchDate);

    Double getDaySalesTotalAmount(LocalDate searchDate);

    List<ItemS> getSalesOrderGroupByFood(LocalDate searchDate, int isCreateInventory);
}
